package com.goldgov.semantics.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.goldgov.semantics.dao.SemanticsDao;
import com.goldgov.semantics.service.Semantics;
import com.goldgov.semantics.service.SemanticsService;

@Service
public class SemanticsServiceImpl implements SemanticsService{

	@Autowired
	private SemanticsDao semanticsDao;
	
	public void addSemantics(Semantics semantics) {
		semanticsDao.addSemantics(semantics);
	}
	
	public void updateSemantics(Semantics semantics) {
		semanticsDao.updateSemantics(semantics);
	}
	
	public void deleteSemantics(String[] ids) {
		semanticsDao.deleteSemantics(ids);
	}
	
	public List<Semantics> listSemantics(String projectID){
		return semanticsDao.listSemantics(projectID);
	}
}
